import requests

keyword = '大主宰'
#keyword = keyword.encode('utf-8')
url_search = 'http://127.0.0.1:8000/qkswnovel/search'


url_homepage = 'http://127.0.0.1:8000/qkswnovel/homepage'
url_novel = 'http://127.0.0.1:8000/qkswnovel/chapter_info'
url_chapter = 'http://127.0.0.1:8000/qkswnovel/chapter_content'

a = requests.post(url_search,data = {'keyword':keyword})

b = requests.post(url_homepage,data = {'homepage':'homepage'})

novel_url = 'https://www.qksw.com/17/17594/'
c = requests.post(url_novel,data = {'novel_url':novel_url})

chapter_url = 'https://www.qksw.com/17/17594/17490247.html'
d = requests.post(url_chapter,data = {'chapter_url':chapter_url})

print('a')
print(a.json())
print('b')
print(b.json())
print('c')
print(c.json())
print('d')
print(d.json())

